<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">

<!-- 从被装饰页面获取title标签内容,并设置默认值-->
<title><decorator:title default="Spring MVC Demo" /></title>

<!-- <title>Spring MVC Demo</title> -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/font-awesome.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/ace-fonts.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/ace.min.css"
	id="main-ace-style" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/ace-skins.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/assets/css/ace-rtl.min.css" />
<script
	src="${pageContext.request.contextPath}/static/assets/js/ace-extra.min.js"></script>

<link
	href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet">


<!-- 从被装饰页面获取head标签内容 -->
<decorator:head />

</head>
<body class=" no-skin">

	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

	<!-- Le fav and touch icons -->
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/assets/ico/favicon.ico">
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="${pageContext.request.contextPath}/static/assets/ico/apple-touch-icon-144-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114"
		href="${pageContext.request.contextPath}/assets/ico/apple-touch-icon-114-precomposed.png">
	<link rel="apple-touch-icon-precomposed" sizes="72x72"
		href="${pageContext.request.contextPath}/assets/ico/apple-touch-icon-72-precomposed.png">
	<link rel="apple-touch-icon-precomposed"
		href="${pageContext.request.contextPath}/assets/ico/apple-touch-icon-57-precomposed.png">

	<!-- header begin -->
	<div id="navbar" class="navbar navbar-default">
		<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

		<div class="navbar-container" id="navbar-container">
			<!-- #section:basics/sidebar.mobile.toggle -->
			<button type="button" class="navbar-toggle menu-toggler pull-left"
				id="menu-toggler">
				<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>

				<span class="icon-bar"></span> <span class="icon-bar"></span>
			</button>

			<!-- /section:basics/sidebar.mobile.toggle -->
			<div class="navbar-header pull-left">
				<!-- #section:basics/navbar.layout.brand -->
				<a href="#" class="navbar-brand"> <small> <i
						class="fa fa-leaf"></i> 老A在线考试
				</small>
				</a>

			</div>

			<div class="navbar-collapse collapse" style="height: 1px;">
				<ul id="main-menu" class="nav navbar-nav navbar-right">
					<li class="dropdown hidden-xs"><a href="#"
						class="dropdown-toggle" data-toggle="dropdown"> <span
							class="glyphicon glyphicon-user padding-right-small"
							style="position: relative; top: 3px;"></span> ${examUser.userId} <i
							class="fa fa-caret-down"></i>
					</a>
						<ul class="dropdown-menu">
							<li><a tabindex="-1"
								href="${pageContext.request.contextPath}/logout">Logout</a></li>

							<li><a tabindex="-1"
								href="${pageContext.request.contextPath}/login">relogin</a></li>
						</ul></li>
				</ul>
			</div>

		</div>
	</div>
	<!-- header end -->

	<!-- left menu begin -->
	<div id="sidebar" class="sidebar responsive">
		<div class="sidebar-shortcuts" id="sidebar-shortcuts">
			<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
				<button class="btn btn-success">
					<i class="ace-icon fa fa-signal"></i>
				</button>

				<button class="btn btn-info">
					<i class="ace-icon fa fa-pencil"></i>
				</button>

				<!-- #section:basics/sidebar.layout.shortcuts -->
				<button class="btn btn-warning">
					<i class="ace-icon fa fa-users"></i>
				</button>

				<button class="btn btn-danger">
					<i class="ace-icon fa fa-cogs"></i>
				</button>

				<!-- /section:basics/sidebar.layout.shortcuts -->
			</div>

			<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
				<span class="btn btn-success"></span> <span class="btn btn-info"></span>

				<span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
			</div>
		</div>
		<!-- /.sidebar-shortcuts -->

		<ul class="nav nav-list">
			<li class=""><a href="index.html"> <i
					class="menu-icon fa fa-tachometer"></i> <span class="menu-text">
						Dashboard </span>
			</a> <b class="arrow"></b></li>
					<c:forEach items="${examUser.examRoleVO}" var="user">
			<c:if test="${user.roleId==2}">
			<li class="hsub active open"><a href="#" class="dropdown-toggle">
					<i class="menu-icon fa fa-list"></i> <span class="menu-text">
						教师 </span> <b class="arrow fa fa-angle-down"></b>
			</a> <b class="arrow"></b>

				<ul class="submenu">

					<li class=""><a href="users"> <i class="menu-icon fa fa-caret-right"></i> 学生信息
					</a> <b class="arrow"></b></li>

					<li class=""><a href="subjects"> <i class="menu-icon fa fa-caret-right"></i> 科目信息
					</a></li>

					<li class=""><a href="tests"> <i class="menu-icon fa fa-caret-right"></i> 考题信息
					</a>
					</li>
					<li class="">
						<a href="showAllScore">
							<i class="menu-icon fa fa-caret-right"></i>
							管理成绩
						</a>				
					</li>
				</ul>
			</li>
			</c:if>
			<c:if test="${user.roleId==1}">
			<li class="hsub active open"><a href="#" class="dropdown-toggle">
					<i class="menu-icon fa fa-list"></i> <span class="menu-text">
						学生 </span> <b class="arrow fa fa-angle-down"></b>
			</a> <b class="arrow"></b>
				<ul class="submenu">

					<li class=""><a href="${pageContext.request.contextPath}/teacher/getAllSubject/${examUser.userId}"> <i
							class="menu-icon fa fa-caret-right"></i> 科目信息
					</a> <b class="arrow"></b></li>
				</ul>
			</li>
			</c:if>
			
		</c:forEach>


		</ul>

		<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
			<i class="ace-icon fa fa-angle-double-left"
				data-icon1="ace-icon fa fa-angle-double-left"
				data-icon2="ace-icon fa fa-angle-double-right"></i>
		</div>
	</div>
	<!-- left menu end -->


	<!-- 从被装饰页面获取body标签内容 -->
	<decorator:body />

	<footer>
		<div class="footer">
			<div class="footer-inner">
				<!-- #section:basics/footer -->
				<div class="footer-content">
					<span class="bigger-120"> <span class="blue bolder">
					</span> &nbsp; &nbsp; <span class="action-buttons"> <a href="#">
								<i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
						</a> <a href="#"> <i
								class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
						</a> <a href="#"> <i
								class="ace-icon fa fa-rss-square orange bigger-150"></i>
						</a>
					</span>
				</div>

				<!-- /section:basics/footer -->
			</div>
		</div>

		<a href="#" id="btn-scroll-up"
			class="btn-scroll-up btn btn-sm btn-inverse"> <i
			class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
		</a>
		</div>
	</footer>


	<script type="text/javascript"> ace.vars['base'] = '..'; </script>
	<script
		src="${pageContext.request.contextPath}/static/lib/ajaxfileupload.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/assets/js/ace/elements.onpage-help.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/assets/js/ace/ace.onpage-help.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/rainbow.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/generic.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/html.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/css.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/docs/assets/js/language/javascript.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/static/bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js"
		charset="utf-8"></script>

	<script type="text/javascript"
		src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
	<script type="text/javascript">
		$("[rel=tooltip]").tooltip();
		$(function() {
			$('.demo-cancel-click').click(function() {
				return false;
			});
		});
	</script>
</body>
</html>